#include<bits/stdc++.h>
using namespace std;

int p[200];

int main()
{
	int t;
	cin>>t;
	while(t--)
	{
		int n, v, w;
		cin>>n>>v>>w;
		for(int i = 1;i <= n;i++)
			cin>>p[i];
		
		sort(p+1, p+n+1);
		
		if(p[1] > w)
		{
			cout<<"0 0.00\n";
			continue; 
		}
		
		int ans = 1;
		double t = p[1];
		for(int i = 2;i <= n;i++)
		{
			if((t+p[i])/(ans+1) <= w)
			{
				t += p[i];
				ans++;
			}
		}
		cout<<ans*v<<" "<<fixed<<setprecision(2)<<t/ans/100<<endl;
	}
	cout<<endl;
	system("pause");
	return 0;
}

